import * as types from './mutation-types'
const mutations = {
  [types.SET_LOGIN_INFO] (state, loginInfo) {
    state.loginInfo = loginInfo
  },
  [types.SET_LOGIN_TOKEN] (state, loginToken) {
    state.loginToken = loginToken
  },
  [types.SET_MENUS_DATA] (state, menusData) {
    state.menusData = menusData
  },
  [types.SET_MENUS_HANDLE_DATA] (state, menusHandleData) {
    state.menusHandleData = menusHandleData
  },
  [types.SET_MENU_DETAILS] (state, menuDetails) {
    state.menuDetails = menuDetails
  },
  [types.SET_SELECT_VALUE] (state, selectValue) {
    state.selectValue = selectValue
  },
  [types.SET_MENU_PANEL_SELECT] (state, menuPanelSelect) {
    state.menuPanelSelect = menuPanelSelect
  },
  [types.SET_MENU_DIALOG_SELECT] (state, menuDialogSelect) {
    state.menuDialogSelect = menuDialogSelect
  },
  [types.SET_PICTURES] (state, pictures) {
    state.pictures = pictures
  },
  [types.SET_PUBLIC_KEY] (state, publicKey) {
    state.publicKey = publicKey
  }
}

export default mutations
